import { createRouter, createWebHashHistory, Router, RouteRecordRaw } from "vue-router";


const routes: RouteRecordRaw[] = [
  { path: '/', redirect: '/login' },
  { path: '/login', component: () => import('@/views/Login.vue') },
  { path: '/register', component: () => import('@/views/Register.vue') },
  { path: '/aa', component: () => import('@/views/aa.vue') },
  { path: '/:pathMatch(.*)*', name: 'NotFound', component: () => import('@/views/404.vue') },
]

const router: Router = createRouter({
  history: createWebHashHistory(),
  routes,
})

export default router